import request from '@/utils/request'

export async function appSelector() {
  let ret = await request({
    url: '/damcAdmin/app/loadAllSelector',
    method: 'get'
  })
  if (ret.ok) {
    return ret.data.textValues;
  }
  return []
}

export function joiner(arr, join) {
  let res = ""
  if (!res && !join) {
    return res;
  }
  for (let i = 0; i < arr.length; i++) {
    res = res + arr[i] + join;
  }
  return res.substr(0, res.length - join.length)
}
